package app.lazygamer;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;


public class Home extends Activity {
    Button InForum;
    Button Home;
    Button Viewer;
    Button Script;
	Button Service;
	Button CViewer;
	Intent intent;
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        InForum = (Button)findViewById(R.id.inforum);
        Home = (Button)findViewById(R.id.home);
        Viewer = (Button)findViewById(R.id.viewer);
        Script = (Button)findViewById(R.id.script);
        Service = (Button)findViewById(R.id.services);
        CViewer = (Button)findViewById(R.id.cview);
        
        InForum.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View arg0) {
				intent = new Intent(Home.this, Infinity_Browser.class);
				intent.putExtra("urls", "http://www.runedev-infinity.org");
				startActivity(intent);
				
				
			} 
        });
        Home.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View arg0) {
				intent = new Intent(Home.this, Infinity_Browser.class);
				intent.putExtra("urls", "http://android.lazygamerz.org/");
				startActivity(intent);

			} 
        });
        
        Viewer.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View arg0) {
				intent = new Intent(Home.this, Infinity_Browser.class);
				intent.putExtra("urls", "http://lilrpgers.lazygamerz.org");
				startActivity(intent);
				
				
			} 
        });
        Script.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View arg0) {
				intent = new Intent(Home.this, Script_Viewer.class);
				startActivity(intent);
				
				
			} 
        });
        
        Service.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View arg0) {
				intent = new Intent(Home.this, RssActivity.class);
				startActivity(intent);
				
				
			} 
        });
        CViewer.setEnabled(false);
       CViewer.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View arg0) {
				
				
				
			} 
        });
        }
    }
